package com.copote.pdfutils;

import com.copote.common.CommVar;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: testPdf
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author: 湖南湘邮科技股份有限公司/RedStar
 * @date: 2023/10/20 10:08
 * @Copyright: 2019 2000 - 2022 HuNan Copote Science & Technology CO., LTD. All Rights Reserved.<br/>
 * 注意：本内容仅限于湖南湘邮科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
@Slf4j
public class testPDF {
    public static void main(String[] args) {
        long time1 = System.currentTimeMillis();
        String title = "图片展示";
        String waterstr = "测试ID 12345678";
        String[][] List = {
                {"D:/TEMP/PDF/20220408/21419071100010095_1.png", "D:/TEMP/PDF/20220408/21419071100010095_2.png",
                        "D:/TEMP/PDF/20220408/21419071100010095_3.jpg", "D:/TEMP/PDF/20220408/21419071100010095_4.jpg",
                        "D:/TEMP/PDF/20220408/21419071100010095_5.jpg", "D:/TEMP/PDF/20220408/21419071100010095_6.jpg",
                        "D:/TEMP/PDF/20220408/21419071100010095_7.jpg"},
                {"D:/TEMP/PDF/20220408/21422040800015184_1.png", "D:/TEMP/PDF/20220408/21422040800015184_5.jpg"},
                {"D:/TEMP/PDF/20220408/21419082600080572_2.png"},
                {"D:/TEMP/PDF/20220408/21422040800015185_7.jpg"}
        };
        CompositePDFofMultiplePictures.PictoPdf(List, title, waterstr, CommVar.ToFilePath() + "ETC_12345678.pdf");
        long time2 = System.currentTimeMillis();
        int time = (int) ((time2 - time1) / 1000);
        log.debug("执行了：" + time + "秒！");
    }
}
